package home.my.recordmanage.web;

import home.my.base.web.ModelAction;
import home.my.recordmanage.model.Style;
import home.my.recordmanage.service.StyleService;

import java.util.List;

import com.opensymphony.xwork2.Action;

public class StyleAction extends ModelAction<Style,StyleService> {
	private String style;
	private List<String> styleList;

	@SuppressWarnings("unchecked")
	@Override
	public String list() {
		styleList = (List<String>)super.getApplication().get("styleList");
		style = (String)super.getApplication().get("style");
		return Action.SUCCESS;
	}

	public String getStyle() {
		return style;
	}

	public void setStyle(String style) {
		this.style = style;
	}

	public List<String> getStyleList() {
		return styleList;
	}
	
}
